package com.example.mapper;


import com.example.entity.Employee;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmployeeMapper {
    List<Employee> selectAll(Employee employee);

    void insert(Employee employee);

    void update(Employee employee);

    @Delete("delete from `employee` where id=#{id}")
    void delete(Integer id);

    @Select("select * from employee where username = #{username}")
    Employee selectbyusername(String username);
}
